// /*
//  * @Author: WanYiMing
//  * @Date:2024-05-17-14:35
//  * @Description:
//  */

using System;

namespace Code.GameLogic.BaseClass.Model
{
    public  class BaseDescription
    {
        public BaseDescription(string id, string typeCode, string typeName)
        {
            Id = id;
            TypeName = typeName;
            TypeCode = typeCode;
        }


        public BaseDescription(string typeCode, string typeName) : this()
        {
            Id = Guid.NewGuid().ToString();
            TypeCode = typeCode;
            TypeName = typeName;
        }

        public BaseDescription()
        {
            Id = Guid.NewGuid().ToString();
        }

        public string Id { get; }

        public string TypeCode { get; }
        
        public string TypeName { get; }

        public override string ToString()
        {
            return $"{nameof(Id)}: {Id}, {nameof(TypeCode)}: {TypeCode}, {nameof(TypeName)}: {TypeName}";
        }
    }
}